<div class="menus view">
<h2><?php  __('Menu');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menu['Menu']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Menu Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menu['Menu']['menu_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Is Vendor Master'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menu['Menu']['is_vendor_master']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menu['Menu']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Is Deleted'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menu['Menu']['is_deleted']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menu['Menu']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Menu', true), array('action' => 'edit', $menu['Menu']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Menu', true), array('action' => 'delete', $menu['Menu']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $menu['Menu']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Menus', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menu Item Groups', true), array('controller' => 'menu_item_groups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu Item Group', true), array('controller' => 'menu_item_groups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Vendor Locations', true), array('controller' => 'vendor_locations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Vendor Location', true), array('controller' => 'vendor_locations', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Menu Item Groups');?></h3>
	<?php if (!empty($menu['MenuItemGroup'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Menu Id'); ?></th>
		<th><?php __('Menu Item Group Name'); ?></th>
		<th><?php __('Menu Item Group Caption'); ?></th>
		<th><?php __('Menu Item Group Description'); ?></th>
		<th><?php __('Is Deleted'); ?></th>
		<th><?php __('Position In Menu'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($menu['MenuItemGroup'] as $menuItemGroup):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $menuItemGroup['id'];?></td>
			<td><?php echo $menuItemGroup['menu_id'];?></td>
			<td><?php echo $menuItemGroup['menu_item_group_name'];?></td>
			<td><?php echo $menuItemGroup['menu_item_group_caption'];?></td>
			<td><?php echo $menuItemGroup['menu_item_group_description'];?></td>
			<td><?php echo $menuItemGroup['is_deleted'];?></td>
			<td><?php echo $menuItemGroup['position_in_menu'];?></td>
			<td><?php echo $menuItemGroup['created'];?></td>
			<td><?php echo $menuItemGroup['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'menu_item_groups', 'action' => 'view', $menuItemGroup['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'menu_item_groups', 'action' => 'edit', $menuItemGroup['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'menu_item_groups', 'action' => 'delete', $menuItemGroup['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $menuItemGroup['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Menu Item Group', true), array('controller' => 'menu_item_groups', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Vendor Locations');?></h3>
	<?php if (!empty($menu['VendorLocation'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ext Location'); ?></th>
		<th><?php __('Street Address'); ?></th>
		<th><?php __('Zipcode Id'); ?></th>
		<th><?php __('Vendor Id'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Vendor Location Note'); ?></th>
		<th><?php __('Vendor Location Lead Min'); ?></th>
		<th><?php __('Allow Preorder'); ?></th>
		<th><?php __('Allow Delivery'); ?></th>
		<th><?php __('Allow Carryout'); ?></th>
		<th><?php __('Menu Id'); ?></th>
		<th><?php __('Gps Latitude'); ?></th>
		<th><?php __('Gps Longitude'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($menu['VendorLocation'] as $vendorLocation):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $vendorLocation['id'];?></td>
			<td><?php echo $vendorLocation['ext_location'];?></td>
			<td><?php echo $vendorLocation['street_address'];?></td>
			<td><?php echo $vendorLocation['zipcode_id'];?></td>
			<td><?php echo $vendorLocation['vendor_id'];?></td>
			<td><?php echo $vendorLocation['email'];?></td>
			<td><?php echo $vendorLocation['vendor_location_note'];?></td>
			<td><?php echo $vendorLocation['vendor_location_lead_min'];?></td>
			<td><?php echo $vendorLocation['allow_preorder'];?></td>
			<td><?php echo $vendorLocation['allow_delivery'];?></td>
			<td><?php echo $vendorLocation['allow_carryout'];?></td>
			<td><?php echo $vendorLocation['menu_id'];?></td>
			<td><?php echo $vendorLocation['gps_latitude'];?></td>
			<td><?php echo $vendorLocation['gps_longitude'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'vendor_locations', 'action' => 'view', $vendorLocation['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'vendor_locations', 'action' => 'edit', $vendorLocation['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'vendor_locations', 'action' => 'delete', $vendorLocation['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vendorLocation['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Vendor Location', true), array('controller' => 'vendor_locations', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
